package exception;

public class AmyException extends Exception {

    //判断名字
    private final String name;

    public AmyException(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "AmyException{" +
                "name='" + name + '\'' +
                '}';
    }
}
